Author: Mats Halfvares, Content Studio development team.

Published: 2009-09-03

Applies to:
  • Content Studio ver. 5.2 or later

Type: Information


Symptoms

After an upgrade of Content Studio you receive the error message below in web applications located below a Content Studio web site. The problem can also occur when you create a new sub application.

InvalidOperationException: Cannot call CS Server outside of remoting context. Host name: Unknown

Cause

This error can only in true web applications located below a Content Studio web site and is triggered when ASP.NET tries to invoke one or more Http Handlers or Http Modules defined in Web.config in the parent Content Studio site. Content Studio version 5.2 introduces several HttpHandlers and HttpModules that are ment to be used in Content Studio only but since their definitions are inherited to the sub sites they are automatically invoked when the affected web application starts.

Resolution

When this problem occurs you need to add the following settings the web.config file of the affected sub applications which removes the HttpHandlers and modules specific to Content Studio

 <configuration>
     
    <!--Section to insert within the configuration section -->
    <system.web>  
        <httpHandlers>
            <remove verb="GET,HEAD" path="ScriptResource.axd"  />
            <remove verb="GET,HEAD,POST" path="~js/FileUpload.ashx" />
        </httpHandlers>
        <httpModules>
            <remove name="CookieEncryptionModule" />
            <remove name="ContentStudio.Site.UrlRewriteModule" />
        </httpModules>
    </system.web> 
    <!--End section-->
    
</configuration>            
            

Status

This problem has been verified by Teknikhuset. Currently there is no automatic solution to this problem.